home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / LACE_14.ARJ / CREM.DOC < prev    next >
Text File  |  1992-06-09  |  10KB  |  289 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                        CREM: Config.Sys REMarker Program v1.0
  9.  
  10.  
  11.                              A Companion Program to LACE
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.                               _______
  20.                          ____|__     |               (tm)
  21.                       --|       |    |-------------------
  22.                         |   ____|__  |  Association of
  23.                         |  |       |_|  Shareware
  24.                         |__|   o   |    Professionals
  25.                       -----|   |   |---------------------
  26.                            |___|___|    MEMBER
  27.  
  28.  
  29.  
  30.                              Written by Keith Ledbetter
  31.                                  4240 Ketcham Drive
  32.                                Chesterfield, VA  23832
  33.                                    (804) 674-0780
  34.                            (6:00pm - 10:00pm Eastern Time)
  35.  
  36.  
  37.  
  38.                          Tech Support BBS:   Blue Ridge Express
  39.                                              804-790-1675
  40.                                              30 Phone Lines (2400 bd)
  41.                                              Sub-board KEITHL
  42.                                              ("J KEITHL")
  43.  
  44.  
  45.                       Electronic mail on  GEnie: ORION.MICRO
  46.                                      Compuserve: 72240,1221
  47.                                             AOL: KLedbetter
  48.  
  49.  
  50.                             Program and Documentation are
  51.           Copyright (c) 1992 by Keith Ledbetter.  All rights reserved.
  52.  
  53.  
  54.                      Portions Copyright Borland, International.
  55.                            Written with Borland C/C++ 3.0.
  56.  
  57.  
  58.  
  59.                                     Introduction
  60.                                     ------------
  61.  
  62.  
  63.                CREM (Config REMarker) is designed  to help out those  users
  64.           who use LACE in conjunction  with QEMM-386, 386^MAX, or  BlueMAX.
  65.           Because of the  way these programs  perform their  "optimization"
  66.           procedures, the  LACE method  of "selection  blocks" won't  work.
  67.           All of these products  get very confused when  you try to run  an
  68.           unmodified, LACE'd CONFIG.SYS through them.
  69.  
  70.  
  71.                Before  CREM,  the  only  way  to  optimize  your   multiple
  72.           configurations was to manually  "comment out" or delete  unwanted
  73.           lines in  your CONFIG.SYS,  run the  optimization procedure,  and
  74.           then  place  the  newly-optimized  lines  back  into  your   LACE
  75.           selection blocks.   CREM helps  speed up this process by  quickly
  76.           and easily  commenting  out all  "LACE  specific" lines  in  your
  77.           CONFIG.SYS file,  leaving only  one  selection block  (from  your
  78.           specification) visible to the optimization program.
  79.  
  80.  
  81.  
  82.  
  83.                                     How it Works
  84.                                     ------------
  85.  
  86.  
  87.                CREM has two possible command line syntaxes, as follows:
  88.  
  89.                                   CREM block_number
  90.  
  91.                                          or
  92.  
  93.                                     CREM "remove"
  94.  
  95.  
  96.           "CREM block_number" tells the program to process your  CONFIG.SYS
  97.           file, commenting out  all LACE-specific lines  and all  selection
  98.           blocks EXCEPT the "block_number" that you specify.
  99.  
  100.  
  101.           "CREM remove" tells the program to remove all comments from  your
  102.           CONFIG.SYS file  that were  previously  placed there  by  earlier
  103.           invocations of CREM (your own comments will remain untouched).
  104.  
  105.  
  106.  
  107.                                      An Example
  108.                                      ----------
  109.  
  110.                Let's assume that you have a CONFIG.SYS file that looks like
  111.           this one:
  112.  
  113.  
  114.  
  115.           DOS     = High
  116.           device  = c:\qemm\qemm386.sys ram
  117.           shell   = c:\4dos\4dos.com /p @c:\4dos\4dos.ini
  118.  
  119.           device  = c:\utils\lace.sys Center NumOff
  120.           device  = LACE SelectionBarBackground=RED
  121.  
  122.           device  = LACE "C\onfiguration with cache"
  123.             device = d:\ms_mouse\mouse.sys /y /s30
  124.             device = c:\caches\mycache.sys 4096
  125.             device = c:\dos50\ansi.sys
  126.             device = c:\dos50\setver.exe
  127.  
  128.           device  = LACE "C\onfiguration with RAMdisk"
  129.             device = d:\ms_mouse\mouse.sys /y /s30
  130.             device = c:\dos50\ramdrive.sys 4096
  131.             device = c:\dos50\ansi.sys
  132.             device = c:\dos50\setver.exe
  133.  
  134.           device = LACE "B\are-bones configuration"
  135.             device = c:\dos50\ansi.sys
  136.             device = c:\dos50\setver.exe
  137.  
  138.           device = LACE End
  139.  
  140.           buffers   = 5
  141.           files     = 60
  142.           break     = on
  143.           STACKS    = 0,0
  144.           lastdrive = E
  145.  
  146.  
  147.  
  148.  
  149.                If you invoked  CREM with the  command line  "CREM 2",  your
  150.           CONFIG.SYS file would be modified to look like this:
  151.  
  152.  
  153.  
  154.           DOS     = High
  155.           device  = c:\qemm\qemm386.sys ram
  156.           shell   = c:\4dos\4dos.com /p @c:\4dos\4dos.ini
  157.  
  158.           REM {!!}device  = c:\utils\lace.sys Center NumOff
  159.           REM {!!}device  = LACE SelectionBarBackground=RED
  160.  
  161.           REM {!!}device  = LACE "C\onfiguration with cache"
  162.           REM {!!}  device = d:\ms_mouse\mouse.sys /y /s30
  163.           REM {!!}  device = c:\caches\mycache.sys 4096
  164.           REM {!!}  device = c:\dos50\ansi.sys
  165.           REM {!!}  device = c:\dos50\setver.exe
  166.           REM {!!}
  167.           REM {!!}device  = LACE "C\onfiguration with RAMdisk"
  168.             device = d:\ms_mouse\mouse.sys /y /s30
  169.             device = c:\dos50\ramdrive.sys 4096
  170.             device = c:\dos50\ansi.sys
  171.             device = c:\dos50\setver.exe
  172.  
  173.           REM {!!}device = LACE "B\are-bones configuration"
  174.           REM {!!}  device = c:\dos50\ansi.sys
  175.           REM {!!}  device = c:\dos50\setver.exe
  176.           REM {!!}
  177.           REM {!!}device = LACE End
  178.  
  179.           buffers   = 5
  180.           files     = 60
  181.           break     = on
  182.           STACKS    = 0,0
  183.           lastdrive = E
  184.  
  185.  
  186.                As you can see, only the second selection block will now  be
  187.           seen by  the  operating system  (and,  most importantly,  by  the
  188.           optimization program).  You would then run either QEMM's OPTIMIZE
  189.           program or 386^MAX's MAXIMIZE program.  After you have  completed
  190.           the optimization step, you would execute the following command:
  191.  
  192.                                      CREM remove
  193.  
  194.           which would remove the comments placed in your CONFIG.SYS by  the
  195.           earlier run of CREM,  leaving you once again  with your old  LACE
  196.           menu selections (but with  a properly optimized second  selection
  197.           block).
  198.  
  199.  
  200.  
  201.                            OK..So What about AUTOEXEC.BAT?
  202.                            -------------------------------
  203.  
  204.  
  205.                You had to  ask that question,  didn't you!   Unfortunately,
  206.           since there are  so many ways  that you can  set up for  multiple
  207.           AUTOEXEC.BAT processing under LACE,  there's really no clean  way
  208.           to implement  an  automatic  approach to  remarking  or  deleting
  209.           unwanted pieces.   Because of this, you will still have to handle
  210.           the   AUTOEXEC.BAT   file(s)   yourself   before   running   your
  211.           optimization program.
  212.  
  213.                If you  are  using  only one  AUTOEXEC.BAT  file,  then  the
  214.           process will be much  easier.  Let's  say that your  AUTOEXEC.BAT
  215.           file looks like this:
  216.  
  217.           -----------------------------------------------------------------
  218.           c:\lace\lace_set
  219.           goto config_%lace%
  220.           :config_1
  221.              ... configuration one lines ...
  222.           :config_2
  223.              ... configuration two lines ...
  224.           :config_3
  225.              ... configuration three lines ...
  226.           -----------------------------------------------------------------
  227.  
  228.           Continuing the above  example of  optimizing configuration  block
  229.           number two, you could run "CREM 2" to modify the CONFIG.SYS  file
  230.           (as we did above), and then  edit your AUTOEXEC.BAT file to  look
  231.           like this:
  232.  
  233.           -----------------------------------------------------------------
  234.           c:\lace\lace_set
  235.           set LACE=2                        <---  ADD THIS LINE
  236.           goto config_%lace%
  237.           :config_1
  238.              ... configuration one lines ...
  239.           :config_2
  240.              ... configuration two lines ...
  241.           :config_3
  242.              ... configuration three lines ...
  243.           -----------------------------------------------------------------
  244.  
  245.                Then, after running the  optimize program, merely edit  your
  246.           AUTOEXEC.BAT file again  and remove the  "set LACE=2"  statement.
  247.           You have now fully optimized selection block two.
  248.  
  249.  
  250.  
  251.  
  252.                                     In Conclusion
  253.                                     -------------
  254.  
  255.                CREM will -ALWAYS- operate on C:\CONFIG.SYS; there's no  way
  256.           to tell the program to  read and write to  a file on a  different
  257.           drive (but, there should never be a need to).
  258.  
  259.  
  260.                To wrap  up, here  are the  steps you  would take  to  fully
  261.           optimize a hypothetical LACE  configuration with three  different
  262.           selection blocks (we'll use QEMM's OPTIMIZE in this example):
  263.  
  264.  
  265.                  1.   run "CREM 1"
  266.                  2.   Change AUTOEXEC.BAT for first configuration
  267.                  3.   run "OPTIMIZE"
  268.  
  269.                  4.   run "CREM 2"
  270.                  5.   Change AUTOEXEC.BAT for second configuration
  271.                  6.   run "OPTIMIZE"
  272.  
  273.                  7.   run "CREM 3"
  274.                  8.   Change AUTOEXEC.BAT for third configuration
  275.                  9.   run "OPTIMIZE"
  276.                  10.  run "CREM remove"
  277.  
  278.  
  279.  
  280.                I hope that  CREM will  help make  the job  of managing  and
  281.           optimizing your LACE configurations much  more painless.  If  you
  282.           have  any  suggestions  for  future  enhancements,  please  don't
  283.           hesitate to contact me about them.
  284.  
  285.  
  286.  
  287.                                                        Enjoy!
  288.  
  289.                                                             Keith